// 返回参数类型

// 生产计划列表返回值
export interface ProducePlanListData {
    results: [
        {
            planId: string;
            planName: string;
            workNumber: string;
            sourceType: string;
            productName: string;
            productId: string;
            specs: string;
            unit: string;
            planNumber: string;
            beginTime: string
            endTime: string
            needTime: string
            state: string;
        }
    ];
}

// 新增生产计划返回值
export interface ProducePlanAddData {
    objectId: string;
    createdAt: string;
}

export interface ProductionWorkOrderData {
    objectId?: string;
    workOrderNumber: string;
    workOrderName: string;
    progress: string;
    relatedPlan: string;
    productName: string;
    productNumber: string;
    specificationModel: string;
    productType: string;
    unit: string;
    requiredDate: string; // 字符串格式日期
    plannedQuantity: string; // 字符串格式数量
    actualQuantity: string; // 字符串格式数量
    plannedStartTime?: string; // 字符串格式日期
    plannedEndTime?: string; // 字符串格式日期
    actualStartTime?: string; // 字符串格式日期
    actualEndTime?: string; // 字符串格式日期
    status: string;
    createdAt?: string;
    updatedAt?: string;
}

export interface ProductionWorkOrderListData {
    results: ProductionWorkOrderData[]
}

